import React, { useState } from "react";
// 1. React 表单控制
// 1.1 受控绑定

function App() {
  const [value, setValue] = useState("");
  return (
    <>
      <input
        type="text"
        value={value}
        onChange={(e) => setValue(e.target.value)}
        placeholder="请输入内容"
      ></input>
    </>
  );
}

export default App;
